Switch to Maplibre and update DataSF datasets#2
Open
emilyhorsman wants to merge 10 commits intoDataSF:masterfrom
Open
Switch to Maplibre and update DataSF datasets#2emilyhorsman wants to merge 10 commits intoDataSF:masterfrom
emilyhorsman wants to merge 10 commits intoDataSF:masterfrom
Conversation
- Add check for buildings-2d layer existence before querying to prevent errors on initial load - Fix wktFromPoints to use dynamic geometry field name instead of hardcoded 'location' - Update landuse dataset ID from a2rp-pwkh to fdfd-xptc (2023 dataset) - Update zoning dataset ID from 66e8-ui2b to 3i4a-hu95 - Add error handling for failed dataset fetches to return empty arrays - Handle missing landuse and zoning data gracefully in UI - Fix geocoder result handling for OpenStreetMap Nominatim format - Add null checks in wktFromPolygon to prevent undefined errors - Add field name fallbacks for zoning (districtname, district_name, district) - Add field name fallbacks for landuse (yrbuilt, year_built, etc.) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Update planning datasets to use new split datasets: - Planning projects: qvu5-m3a2 - Planning non-projects: y673-d69b - Change planning field names to uppercase (RECORD_ID, PROJECT_ADDRESS, etc.) - Switch from geometry-based to parcel-based queries for planning datasets - Replace missing date fields with "N/A" placeholders - Fix property tax roll field mappings (fixture_value, closed_roll_fiscal_year) - Remove geometry field from DBI complaints dataset - Update energy dataset from 75rg-imyz to 96ck-qcfe with new field mappings - Remove debug console.log statements 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Update parcel date fields to use date_map_add instead of deprecated rec_add - Apply formatDate() function to display dates as YYYY-MM-DD - Remove "unknown date" text when date is missing - Check for date_map_drop field for dropped parcels 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Change 'open-date' alias to 'open_date' to fix SoQL syntax error - Update additional dataset IDs and field mappings missed in previous commits - Fix fire inspections typo and planning field inconsistencies 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Change planning record status field from 'record_status' to 'status' - Change date field from 'open_date' to 'status_date' for both planning datasets 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add proper padding to prevent magnifying glass from overlapping text - Position search icon and clear button correctly - Ensure icons don't overlap with placeholder or typed text 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
…update-datasets Switch to MapLibre and update dataset IDs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
This repository has not been updated in 6 years. The publicly hosted datasf.org app isn't working because:
This PR
This PR isn't perfect but it successfully gets things working.
Example
My fork is hosted on GitHub Pages here.